package com.group525.cloudef.entity.doctor;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Result;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author group525
 * @since 2023-04-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("d_user")
//@Component
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="医生实体类", description="医生基本数据")
public class DUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value = "唯一标识",hidden = true)
    private Long id;

    @ApiModelProperty(value = "登陆密码",required = true)
    private String password;

    @ApiModelProperty(value = "医生姓名",required = true)
    private String name;

    @ApiModelProperty(value = "医生工号",required = true)
    @TableField(value = "jobNumber")
    private String jobNumber;

    @ApiModelProperty(value = "性别",required = true)
    private String gender;

    @ApiModelProperty(value = "医院",required = true)
    private String hospital;

    @ApiModelProperty(value = "等级",required = true)
    private String level;

    @ApiModelProperty(value = "科室",required = true)
    private String depart;

    @ApiModelProperty(value = "职位",required = true)
    private String role;

    @ApiModelProperty(value = "个人简介",required = true)
    private String info;

    @ApiModelProperty(value = "接诊量、工作量",required = true)
    private Integer workLoad;

    @ApiModelProperty(value = "联系方式（工作邮箱或科室电话）",required = true)
    private String contact;

    @ApiModelProperty(value = "地区",required = true)
    private String area;

    @ApiModelProperty(value = "擅长部位",required = true)
    @TableField(value = "GoodAt")
    private String GoodAt;

    @ApiModelProperty(value = "手机号",required = true)
    private String phone;

    @ApiModelProperty(value = "头像",required = true)
    private String icon;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT )
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT )
    private Date updateTime;

}
